package com.example.leetdemo.finash;

public class Solution3083 {

    public boolean isSubstringPresent(String s) {
        for (int i = 1; i < s.length(); i++) {
            String a = "" + s.charAt(i) + s.charAt(i - 1);
            if (s.contains(a)) {
                return true;
            }
        }
        return false;
    }

}
